//
// Created by Administrator on 2022/8/29.
//

#include "tp_alloc.h"
void * tp_malloc(size_t size)
{
    void *p;
    p = malloc(size);
    if(p == NULL)
    {
        return p;
    }
    return p;
}

void * tp_calloc(size_t size)
{
    void *p;
    p = tp_malloc(size);
    if(p)
    {
        memset(p, 0, size);
    }
    return p;
}